package com.hongye.area.dao;

import com.hongye.area.entity.MetroEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 
 * 
 * @author cyj
 * @email sunlightcs@gmail.com
 * @date 2022-04-22 16:19:01
 */
@Mapper
public interface MetroDao extends BaseMapper<MetroEntity> {

    @Update("update tb_metro set state = #{state} where mid = #{id}")
    int updateState(@Param("id") Integer id, @Param("state") Integer state);
}
